Pen : Refer to the Statics
2015/01/31 |
Configure Pen to refer to the Statics.
|
|
[1] |
Install httpd, refer to here.
Furthermore, port 80 is used by pen, so change the port of httpd from 80 to another port. This example uses 8081. |
[2] | Configure Pen. |
[root@dlp ~]# cp /usr/share/doc/pen-*/penstats /var/www/pen
[root@dlp ~]#
vi /var/www/pen/penstats # line 4,5: change like follows PIDFILE= /var/run/pen.pid WEBFILE= /var/www/pen/webstats.html
[root@dlp ~]#
vi /etc/httpd/conf.d/pen.conf # change like follows Alias /pen/ /var/www/pen/<Directory /var/www/pen/> DirectoryIndex webstats.html # Options ExecCGIorder deny,allow deny from all # IP address you allow to access allow from 127.0.0.1 10.0.0.0/24 </Directory>
[root@dlp ~]#
/etc/rc.d/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ] [root@dlp ~]# chmod 755 /var/www/pen/penstats # generate statics [root@dlp ~]# /var/www/pen/penstats > /dev/null # add to Cron [root@dlp ~]# echo '*/5 * * * * /var/www/pen/penstats > /dev/null' > /etc/cron.d/pend |
[3] | Access to "http://(Pen server's hostname or IP address):(httpd listening port)/pen/", then it's possible to refer statics of Pen like follows. |